using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CCShootManager : SSActionManager, ISSActionCallback
{
    private CCShootAction shoot; // 箭射出的动作
    // Start is called before the first frame update
    protected new void Start()
    {
        
    }

    public void SSActionEvent(SSAction source, 
		SSActionEventType events = SSActionEventType.Competeted,
		int intParam = 0 , 
		string strParam = null, 
		Object objectParam = null) {

        }

    public void ShootArrow(GameObject arrow, Vector3 impulseDir, float power) {
        shoot = CCShootAction.GetSSAction(impulseDir, power); // 实例化射箭动作
        arrow.GetComponent<AudioSource>().Play();
        RunAction(arrow, shoot, this);
        // Debug.Log("v: " + arrow.GetComponent<Rigidbody>().velocity);
    }
}
